##
#
# Sets Common Web Application settings for ISEG
# Created by Nate Bruneau
# 1/7/2010
#
##


#bug #fix for multiple web applications
$webapps = get-spwebapplication |% { $_.Url }

	foreach ($webapp in $webapps){
	
	Write-Host -ForegroundColor Yellow "WebApp: Setting up Web Application Settings for $webapp."
	$spweb = Get-SPWebApplication $webapp
	$spweb.DefaultQuotaTemplate = "2GB"
	$spweb.DefaultTimeZone =  "13"
	$spweb.SendLoginCredentialsByEmail = $false
	$spweb.MaximumFileSize = 100
	$spweb.BrowserCEIPEnabled = $true
	$spweb.BrowserFileHandling = 'Permissive'
	$spweb.Update()
	Write-Host -ForegroundColor Yellow "WebApp: Setting up Web Application Settings for $webapp. COMPLETED"
	}